package com.chen.staffjoy.account.service;

import com.chen.staffjoy.account.dto.AccountDto;
import com.chen.staffjoy.account.dto.AccountList;
import com.chen.staffjoy.account.entity.Account;
import com.chen.staffjoy.commonlib.base.BaseService;

/**
 * 账户信息表 接口
 *
 * @author ChenTian
 */ 
public interface IAccountService extends BaseService<Account> {

    AccountDto create(String name, String email, String phoneNumber);

    AccountDto getOrCreate(String name, String email, String phoneNumber);

    AccountList list(int offset, int limit);

    AccountDto get(String userId);

    AccountDto getAccountByPhoneNumber(String phoneNumber);

    AccountDto update(AccountDto newAccount);

    void updatePassword(String userId, String password);
}

